<? foreach ($data as $taste): ?>
<?php
    $group = (object)$taste['TasteGroup'];
    $taste = (object)$taste['Taste'];

?>
<item>
    <id><?= $taste->id ?></id>
    <title><?= $taste->name ?></title>
    <image><?= Router::url('/img/products/' . $group->id . '/' . $taste->image, true) ?></image>
    <link><?= Router::url('/proizvod/' . $taste->id . '/'.
                                         urlize($group->name) . '/'.
                                         urlize($taste->name), true) ?></link>
    <description><![CDATA[<?= $taste->description ?>]]></description>
</item>
<? endforeach ?>